# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=perl-test-number-delta
pkgver=1.06
pkgrel=8
pkgdesc="Compare the difference between numbers against a given tolerance"
arch=(any)
license=('PerlArtistic')
url="https://metacpan.org/release/Test-Number-Delta"
depends=('perl')
source=(https://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/Test-Number-Delta-$pkgver.tar.gz)
sha256sums=('535430919e6fdf6ce55ff76e9892afccba3b7d4160db45f3ac43b0f92ffcd049')

build() {
  cd  "$srcdir"/Test-Number-Delta-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd  "$srcdir"/Test-Number-Delta-$pkgver
  make install DESTDIR="$pkgdir"
}
